package com.fuxi.cloud.config;

import com.fuxi.cloud.common.util.JimuReportRepository;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * JimuReportValueConfig
 *
 * @Author: 扫地僧
 * @CreateTime: 2021-05-03
 */
@Configuration("jimuReportValueConfig")
public class JimuReportValueConfig {
    @Value("${jeecg.jmreport.saas:false}")
    private Boolean saas;

    public JimuReportValueConfig() {
    }

    @Bean
    public void initJimuReportRepository() {
        JimuReportRepository.setSaas(this.saas);
    }
}

